#include<iostream>
using namespace std;
int main()
{
	int n;
	cin >> n;
	int ans = 0;
	for (int i = 0; i <= n; i++) {
		for (int j = 0; j <= n; j++) {
			for (int k = 0; k <= n; k++) {
				if (i + 2 * j + 5 * k == n) {
					ans++;
				}
			}
		}
	}
	cout << ans << endl;
	return 0;
}